import { getData, postData } from '@/servers/http'
import type { TestEvalRes } from './interface'

// 测评题目详情
export const getTestEvals = (id: string, data?: any) => getData<any, TestEvalRes>(`/test-evals/${id}`, data)

/** 提交测评考卷 */
export const testEvalsSave = (data: any) => postData(`/test-evals/save`, data)

/** 提交测评考卷 */
export const getTestEvalsRecordView = (id: string) => getData(`/test-evals/record-view/${id}`)
